﻿using System.ServiceModel;
using System.ServiceModel.Web;
using WcfRestContrib.ServiceModel.Description;

namespace TTprotons.Crm.ExternalView.Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IViewService" in both code and config file together.
    [ServiceContract]
    public interface IViewService
    {
        [OperationContract]
        [WebGet(UriTemplate = "/View/{viewName}/?f={filter}&p={password}")]
        [WebDispatchFormatter]
        string GetViewData(string password, string viewName, string filter);

        [OperationContract]
        [WebGet(UriTemplate = "/PagedView/{viewName}/f={filter}&p={password}&pageno={pageNo}")]
        [WebDispatchFormatter]
        string GetPagedViewData(string password, string viewName, string filter, string pageNo);
    }
}